#pragma once

#include <tinyxml.h>

#define XML_CONFIG_MAX_VAR_LENGTH 256

class XmlConfig
{
public:
	enum TransferMode
	{
		Read, Write
	};

	XmlConfig(void);
	~XmlConfig(void);

	bool Open(char * filename);
	bool TransferString(char * pathvarname, char * link, size_t size, TransferMode mode);
	bool TransferInteger(char * pathvarname, int * link, TransferMode mode);

private:
	TiXmlDocument _Doc;
};

